<template>
  <div id="frameBox">
    <el-container>
      <el-header>
        <Header></Header>
      </el-header>
      <el-container>
        <el-aside width="200px">
          <Aside></Aside>
        </el-aside>
        <el-main>
          <Main></Main>
        </el-main>
      </el-container>
    </el-container>
    <Singing v-if="isShow" :changeIsShowSinging="changeIsShow"></Singing>
    <Footer :changeIsShowSinging="changeIsShow"></Footer>
  </div>
</template>

<script>
import axios from 'axios'

import Header from "./Header";
import Aside from "./Aside";
import Main from "./Main";
import Footer from "./Footer";
import Singing from './Singing.vue'
export default {
  name: "Frame",
  components: { Header, Aside, Main, Footer,Singing },
  data() {
    return {
      isShow: false
    }
  },
  methods: {
    //是否全屏展示播放歌曲页面
    changeIsShow(){
      this.isShow = !this.isShow
    }
  },

  mounted() {
    //排行榜
    axios.get("http://localhost:8013/api/toplist").then(
      res=>{
        // console.log(res);
      }
    )
  },
};
</script>

<style scoped>
#frameBox {
  /* min-height: 200px; */
}
#frameBox .el-header,
.el-footer {
  background-color: #b3c0d1;
  color: #333;
  text-align: center;
  line-height: 60px;
}
.el-header {
  min-width: 1252px;
  z-index: 15;
}
.el-footer,
.el-main {
  min-width: 1052px;
}
.el-aside {
  border-right: 1px solid #bbb;
  color: #333;
  text-align: center;
}
.el-main {
  color: #333;
  text-align: center;
  line-height: 160px;
  padding: 0 !important;
}
body > .el-container {
  margin-bottom: 40px;
  padding-bottom: 38px;
}
.el-container {
  height: 100vh !important;
}
</style>